/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service.impl;

import com.hboxs.asl.Page;
import com.hboxs.asl.Pageable;
import com.hboxs.asl.dao.DepositDao;
import com.hboxs.asl.entity.Deposit;
import com.hboxs.asl.entity.Member;
import com.hboxs.asl.service.DepositService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Service - 预存款
 */
@Service("depositServiceImpl")
public class DepositServiceImpl extends BaseServiceImpl<Deposit, Long> implements DepositService {

    @Resource(name = "depositDaoImpl")
    private DepositDao depositDao;

    @Resource(name = "depositDaoImpl")
    public void setBaseDao(DepositDao depositDao) {
        super.setBaseDao(depositDao);
    }

    @Transactional(readOnly = true)
    public Page<Deposit> findPage(Member member, Pageable pageable) {
        return depositDao.findPage(member, pageable);
    }

}